<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>JS demo</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="keywords" content="web 在线编辑器">
<script type="text/javascript" src="Resource/javascript/sparrow.js"></script>
<script type="text/javascript"
	src="Resource/javascript/sparrowEditor.js"></script>

<script type="text/javascript">
	var rootPath = "http://www.zhuaququ.com";

	var editor = new SparrowEditor("editor");
	var editor2 = new SparrowEditor("editor2");
	window.onload = function() {
		editor.config.tool.adjust.adjustable= true;
		editor2.config.style="simple";
		
		
		editor.initialize("divEditor");		
		editor.attach.setParentObject(editor);
		editor2.initialize("divEditor2");
		

	}
	function showOuterHTML() {
		alert(editor.getEditorContent());
	}
</script>
<link rel="stylesheet" type="text/css" href="../style/global.css">
</head>

<body style="width: 1004px; text-align:left;">
	<input id="txtTitle" type="text" />
	<input id="btnShowOuterHTML" type="button" value="显示内容"
		onclick="showOuterHTML();" />
	<div id="divEditor"
		style="width: 700px; height: 400px; border: #ccc 1px solid;"></div>
	<div id="divEditor2"
		style="width:500px; height:300px; border: #ccc 1px solid;"></div>

</body>
</html>